<div class="js-response">
<?php if (!empty($projectCategories)) :?>
	<h3 class="menu-list1"><?php echo __l('Filter by Category');?></h3>
	<ul class="side-menu clearfix">
		<?php foreach ($projectCategories as $project_category) :?>
		<?php $class = (!empty($this->request->params['named']['category']) && $this->request->params['named']['category'] == $project_category['ProjectCategory']['slug']) ? ' class="active"' : null; ?>
		<li <?php echo $class;?>><?php echo $this->Html->link($project_category['ProjectCategory']['name'], array('controller' => 'projects', 'action' => 'index', 'category' => $project_category['ProjectCategory']['slug']), array('title' => $project_category['ProjectCategory']['name']));?></li>
		<?php endforeach;?>
	</ul>

<?php endif;?>  
<div class="js-pagination">
	<?php if (!empty($projectCategories)) : ?>
	<?php echo $this->element('paging_links'); ?>
	<?php endif; ?>
</div>
</div>